﻿namespace IceCS.DesignPattern.Core.FilterOrCriteriaPattern.ChinesePerson
{
    public class Person
    {
        public string Name { get; set; }
        public string Gender { get; set; }
        public string MaritalStatus { get; set; }

        /// <summary>Initializes a new instance of the <see cref="T:IceCS.DesignPattern.Core.FilterOrCriteriaPattern.ChinesePerson.Person"></see> class.</summary>
        public Person(string name, string gender, string maritalStatus)
        {
            Name = name;
            Gender = gender;
            MaritalStatus = maritalStatus;
        }

        /// <summary>Returns a string that represents the current object.</summary>
        /// <returns>A string that represents the current object.</returns>
        public override string ToString()
        {
            return $"Person : [ Name : {Name}, Gender : {Gender}, Marital Status : {MaritalStatus} ]";
        }
    }
}
